<template>
  <div class="app-container">
    <el-tabs v-model="activeName">
      <el-tab-pane label="发起料单" name="second3">
        <Receipt_form_compact></Receipt_form_compact>
      </el-tab-pane>
      <el-tab-pane label="待办" name="second">
        <ProcessInstances :processTypeToMe="typeTask" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
      <el-tab-pane label="已办" name="third">
        <ProcessInstances :processTypeToMe="typeTaskDone" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
      <el-tab-pane label="办结" name="fourth">
        <ProcessInstances :processTypeToMe="typeFinished" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
      <el-tab-pane label="抄送" name="fifth">
        <ProcessInstances :processTypeToMe="typeCcMe" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
      <el-tab-pane label="我的" name="sixth">
        <ProcessInstances :processTypeToMe="typeMeCreated" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
      <el-tab-pane label="我的变量" name="sixth2">
        <ProcessInstances :processTypeToMe="typeStartUserName" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
      <el-tab-pane label="全部" name="first">
        <ProcessInstances :processTypeToMe="typeAll" :processDenifitionKey="processDefinitionKey"></ProcessInstances>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import TasksDone from "@/views/activiti/task/done";
import Tasks from "@/views/activiti/task/index";

import ProcessInstances from "@/views/activiti/processInstance/index";
import TasksDoneReceiptForm from "@/views/activiti/task/done_receipt_form";

import TasksReceiptForm from "@/views/activiti/task/index_receipt_form";

import Receipt_form_compact from "@/views/labbase/receipt_form/index_compact";
export default {
  name: "Receipt_form",
  components: { ProcessInstances, TasksReceiptForm, TasksDoneReceiptForm, TasksDone, Tasks, Receipt_form_compact },
  data() {
    return {
      activeName: 'second3',
      typeAll: 'all',
      typeMeCreated: 'meCreated',
      typeFinished: 'finished',
      typeUnfinished: 'unfinished',
      typeTaskDone: 'done',
      typeCcMe: 'ccTask',
      typeTask: 'task',
      typeStartUserName: 'startUserName',
      processDefinitionKey: 'receipt_form',
      processDefinitionKeyNull: 'null',
      definitionKeyEx: [],
    }
  },
};
</script>
